package com.edu.whty.common.tools;


import java.util.Random;

/**
 * @author xiongxiaofei
 * @date 2017/3/3
 */
public final class SnowflakeUtils {

    public static long getNextId() {
        Snowflake  instance = new Snowflake(0, new Random().nextInt(30));
        return instance.nextId();
    }

}
